Skip to content

feat(server): default delegate_task placement to auto and protect active interactive hosts - #265

Merged
nullStack65 merged 3 commits into
release/native-0.1.10from
feat/clo-1368-m0-placement-default
Dec 5, 2026
Merged

nullStack65 merged 3 commits into
release/native-0.1.10from
feat/clo-1368-m0-placement-default

Conversation

@nullStack65

@nullStack65 nullStack65 commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Implements M0 Item 1 from the Bot Runtime Plan (CLO-1368).

Problem

When a thread on an interactive laptop dispatches a burst of delegate_task calls (such as 12 review tasks) without setting placement: "auto", or with isolation: "worktree", tasks fell back onto the origin laptop while a human was actively using it instead of fanning out to headless executors (R720, ASUS) and queueing overflow cleanly.

Changes

  • Default placement to "auto" (apps/server/src/mcp/OrchestratorMcpService.ts, packages/contracts/src/orchestratorMcp.ts): Omitted placement on delegate_task now defaults to "auto" whenever automaticPlacementByDefault is enabled (fork default, marked with Closura: comments), unless target.environmentId or needsLocalCheckout: true is specified or an idempotent retry matches an accepted local receipt. Added "here" literal to placement and optional needsLocalCheckout boolean to OrchestratorMcpDelegateTaskInput.
  • Headless worktree placement from pushed ref (apps/server/src/mcp/OrchestratorMcpService.ts, apps/server/src/peer/RemoteDelegation.ts): isolation: "worktree" resolves whether the parent checkout's HEAD is reachable from a pushed remote ref (<remote>/<branch>) and, when pushed, routes to an eligible headless host passing { type: "worktree", baseRef, startFromOrigin: true } to t3_thread_launch. Unpushed local-only worktrees are refused on linked peers and never silently placed remotely.
  • Interactive-host active-human guard & one-at-a-time needsLocalCheckout exception (apps/server/src/mcp/OrchestratorMcpService.ts): Refuses agent-origin child launches on an interactive host (placementRole !== "headless") while its human is active or activity is unknown (humanActive !== false), unless needsLocalCheckout: true is explicitly set. When needsLocalCheckout: true is set, enforces at most one active local agent-origin child at a time via Semaphore.make(1) + active shell/run verification (preserving idempotent replay for the admitted clientRequestId).
  • Tests (packages/contracts/src/orchestratorMcp.test.ts, apps/server/src/peer/RemoteDelegation.test.ts, apps/server/src/mcp/OrchestratorMcpService.test.ts, apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.ts, apps/server/src/mcp/TaskCancelNativeSubagent.integration.test.ts):
    • 12-request review burst replay (PRs 2261–2272) with active-human laptop + R720 (4 lanes) + ASUS (1 lane): 4 on R720, 1 on ASUS (all worktrees with startFromOrigin: true), 7 queued (no-eligible-environment), 0 on laptop.
    • 12-request review burst replay when neither headless executor is eligible: all 12 queued (no-eligible-environment), 0 on laptop even without maxLanes: 0.
    • Active-human refusal (placement: "here", named laptop environmentId, unpushed worktree, unknown humanActive, conflicting needsLocalCheckout + placement: "auto") and allowed when humanActive: false.
    • One-at-a-time needsLocalCheckout exception: admit first, replay idempotent retry, refuse second while first active, allow next after completion, concurrent pair admits 1 and refuses 1.
    • Real-Git pushed vs. unpushed worktree resolution test.

Zero file overlap with open PR #261 (fix/standing-placement-off-laptop).

Verification

  • vp fmt --check on all 8 changed files: pass
  • vp lint --report-unused-disable-directives on all 8 changed files: pass (0 warnings, 0 errors)
  • vp run --filter @t3tools/contracts --filter t3 typecheck: pass
  • vp test run packages/contracts/src/orchestratorMcp.test.ts packages/shared/src/threadPlacement.test.ts: 16/16 pass
  • cd apps/server && vp test run src/peer/RemoteDelegation.test.ts src/mcp/OrchestratorMcpService.test.ts: 184/184 pass (post-rebase on cd3aabe42d76)
  • cd apps/server && vp test run src/mcp/OrchestratorMcpService.activity.test.ts src/mcp/TaskCancelNativeSubagent.integration.test.ts: 22/22 pass
  • Not verified locally: apps/server/src/mcp/OrchestratorMcpToolkit.integration.test.ts timed out locally in the Codex replay harness (pre-existing stall even with automaticPlacementByDefault: false); knip:check:files fails repo-wide on two pre-existing unused .github/scripts/*.cjs files on release/native-0.1.10 (0 unused files/exports from this PR).

Deploy: fleet

Model: gemini-4-neon
Task: implementation
Agent: Builder
Harness: t3/antigravity
Model-family: Gemini (runtime model label)
Model-generation: 4 (runtime model label)
Skills-SHA: f6ff9413445ca486f4e9b67f2209e6be8c2a51a1; skills/github-repository-ops/SKILL.md (sha256:e3778c3a953bfa9e7bf5c9b9609b6d6c947cffa03366b3bc0f75bbb722b76784)

…ive interactive hosts

Implements M0 Item 1 from the Bot Runtime Plan (CLO-1368):
- Default omitted `delegate_task` `placement` to `"auto"` (governed by
  `automaticPlacementByDefault`) so bursts of delegated tasks fan out to
  eligible headless executors instead of landing on the origin laptop.
- Allow `isolation: "worktree"` to place onto headless executors when the
  parent checkout's HEAD is reachable from a pushed remote ref, launching
  the remote worktree with `startFromOrigin: true`.
- Refuse agent-origin child launches on an interactive host while its
  human is active (or activity is unknown), unless `needsLocalCheckout: true`
  is explicitly set; cap that exception to at most one active local child
  at a time (concurrency-safe via semaphore).
- Add contract schema and end-to-end tests covering the 12-request review
  burst replay (with headless capacity and with zero eligible headless
  executors), active-human refusal, pushed vs. unpushed worktree routing,
  and the one-at-a-time `needsLocalCheckout` exception.

Model: gemini-4-neon
Task: implementation
Agent: Builder
Harness: t3/antigravity
Model-family: Gemini (runtime model label)
Model-generation: 4 (runtime model label)
Skills-SHA: f6ff9413445ca486f4e9b67f2209e6be8c2a51a1; skills/github-repository-ops/SKILL.md (sha256:e3778c3a953bfa9e7bf5c9b9609b6d6c947cffa03366b3bc0f75bbb722b76784)
@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nullStack65

Copy link
Copy Markdown
Owner Author

Clean-room full review #1 of 2 (Tier 3) for PR #265 (cd3aabe42d76b300d399fcf61d3bb766698f3523) against M0 item 1 and Exact Check 3 of the Bot Runtime Plan.

Summary

The core M0 item 1 implementation is solid and well-tested:

  • delegate_task defaults placement to "auto" when automaticPlacementByDefault is enabled (with Closura: fork-default comments).
  • isolation: "worktree" resolves a pushed remote ref covering HEAD (merge-base --is-ancestor HEAD refs/remotes/<remote>/<branch>) and forwards { type: "worktree", baseRef, startFromOrigin: true } to headless peers, while refusing unpushed local-only worktrees on peers.
  • Interactive hosts with humanActive !== false (including unknown activity) refuse agent-origin children unless needsLocalCheckout: true is set, and enforce at most one active local agent-origin child at a time via Semaphore.make(1) + hasActiveLocalAgentChild() while preserving idempotent replay for the admitted clientRequestId.
  • Both 12-request review burst replay tests (with headless capacity and with neither headless executor eligible) pass with 0 laptop placements.

Two findings (1 important, 1 nit):

  • F1 (important) at apps/server/src/mcp/OrchestratorMcpService.ts:3212 (and apps/server/src/peer/RemoteDelegation.ts:1018): An idempotent retry (clientRequestId) of an already-placed remote isolation: "worktree" task bypasses remoteDelegation.placed(...) if local HEAD has moved to an unpushed commit (or automaticPlacementByDefault is toggled off), launching a duplicate local child on headless/idle hosts or failing with invalid_request on active interactive hosts instead of reconciling the bound remote placement.
  • F2 (nit) at apps/server/src/mcp/OrchestratorMcpService.ts:3296: Refusal message for placement: "here" (or local target.environmentId) with isolation: "worktree" on an active interactive host claims no pushed ref covers HEAD even though resolvePushedWorktreeStrategy was skipped (needsPushedWorktree was false).
{
  "reviewed_base": "6382e077dede0c225c1cac0c7b2c4ec14e0a04a8",
  "reviewed_head": "cd3aabe42d76b300d399fcf61d3bb766698f3523",
  "reviewer": "gemini-4-neon, Antigravity (T3)",
  "author_session": "mcp:launch:258c8272bae1cf3f711984e8716295f8ed1a2846e2f3b35631fa62e31c82a176",
  "reviewer_session": "852a1490-8a73-4018-af52-21358d0b5481",
  "fresh_context": true,
  "review_kind": "full",
  "round_id": "852a1490-8a73-4018-af52-21358d0b5481",
  "intent": [
    "CLO-1368 M0-1: default delegate_task placement to auto, allow worktree placement on headless hosts, and refuse agent-origin children on active interactive hosts unless needsLocalCheckout is set (one at a time)"
  ],
  "prior_findings": [],
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "outcome": "open",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3212,
      "summary": "Idempotent retry of a remotely-placed `isolation: \"worktree\"` task bypasses bound placement when local `HEAD` advances to an unpushed commit (or `automaticPlacementByDefault` is toggled off): `delegateTask` only checks `existingLocalReceipt` and skips `placeTask` when `canPlaceRemotely` is false, launching a duplicate local child on headless/idle hosts or failing with `invalid_request` on active interactive hosts instead of reconciling the bound remote placement (and `RemoteDelegation.delegate` at `apps/server/src/peer/RemoteDelegation.ts:1018` rejects missing `workspaceStrategy` before `launchThere` checks the bound `remote-launch` intent)."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "open",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3296,
      "summary": "Refusal message when `placement: \"here\"` (or local `target.environmentId`) is combined with `isolation: \"worktree\"` on an active interactive host claims no pushed ref covers `HEAD` even though `needsPushedWorktree` was false and `resolvePushedWorktreeStrategy` was not run; guard with `needsPushedWorktree && remoteWorktreeStrategy === undefined`."
    }
  ]
}

…-human worktree message

Addresses clean-room review findings F1 and F2 on PR #265:
- F1: Check `remoteDelegation.placed(...)` before re-evaluating
  `automaticPlacementByDefault` or local HEAD in `OrchestratorMcpService.ts`,
  and reconcile already-recorded / already-launched `clientRequestId` retries
  in `RemoteDelegation.ts` before requiring a pushed worktree strategy so a
  retry after local HEAD moves to an unpushed commit or default placement is
  toggled off never spawns a duplicate local child or fails with invalid_request.
- F2: Guard the "no pushed ref covers HEAD" active-human refusal message with
  `needsPushedWorktree && remoteWorktreeStrategy === undefined` so explicit
  `placement: "here"` or local `target.environmentId` with `isolation: "worktree"`
  reports the general active-human refusal accurately.
- Tests: Add regression coverage for recorded and lost-answer remote worktree
  retries after local HEAD becomes unpushed and `automaticPlacementByDefault` is
  disabled, plus F2 refusal wording assertions in `RemoteDelegation.test.ts`.

Model: gemini-4-neon
Task: fix
Agent: Builder
Harness: t3/antigravity
Model-family: Gemini (runtime model label)
Model-generation: 4 (runtime model label)
Skills-SHA: f6ff9413445ca486f4e9b67f2209e6be8c2a51a1; skills/github-repository-ops/SKILL.md (sha256:e3778c3a953bfa9e7bf5c9b9609b6d6c947cffa03366b3bc0f75bbb722b76784)
@nullStack65

Copy link
Copy Markdown
Owner Author

Focused re-check (Claude family) for PR #265 at b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1, repair delta cd3aabe42d76..b9deb59d7332.

  • F1 (confirmed fixed): delegateTask now calls remoteDelegation.placed(...) for a clientRequestId before it reads defaults, automaticPlacementByDefault or local HEAD (boundEnvironmentId/boundRemote). A bound remote placement skips the auto-default and needsLocalCheckout handling and forces canPlaceRemotely, so a retry after HEAD goes unpushed or the setting is toggled off reconciles remotely instead of launching a duplicate local child. RemoteDelegation.delegate now computes launchId/childId first. It returns the recorded task from priorChild, and skips the pushed-ref refusal when priorLaunch exists, so a retry no longer fails on the missing workspaceStrategy. A new test covers an unpushed HEAD and automaticPlacementByDefault turned off before the retry.
  • F2 (confirmed fixed): The refusal now uses the pushed-ref wording only when needsPushedWorktree && remoteWorktreeStrategy === undefined. placement: "here" and a local target.environmentId with isolation: "worktree" get the generic active-human message. New tests assert the pushed-ref text is absent for those cases and still present for an unpushed worktree.
  • No new findings. I did not run the tests locally. This is a static review of the delta, and the PR's CI checks were still pending.
{
  "reviewed_base": "6382e077dede0c225c1cac0c7b2c4ec14e0a04a8",
  "reviewed_head": "b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1",
  "reviewer": "claude-sonnet-5-5 (t3/antigravity)",
  "author_session": "mcp:launch:258c8272bae1cf3f711984e8716295f8ed1a2846e2f3b35631fa62e31c82a176",
  "reviewer_session": "ba710ea0-ff3e-4d0f-993e-d45bed81420a",
  "fresh_context": true,
  "review_kind": "focused_recheck",
  "round_id": "852a1490-8a73-4018-af52-21358d0b5481",
  "intent": [
    "CLO-1368 M0-1: default delegate_task placement to auto, allow worktree placement on headless hosts, and refuse agent-origin children on active interactive hosts unless needsLocalCheckout is set (one at a time)"
  ],
  "prior_findings": ["F1", "F2"],
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "outcome": "confirmed",
      "rechecked_head": "b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3212,
      "summary": "Idempotent retry of a remotely-placed `isolation: \"worktree\"` task now checks bound placement (`remoteDelegation.placed`) before local HEAD or `automaticPlacementByDefault`; `RemoteDelegation.delegate` reconciles prior launch/child intents instead of rejecting a missing `workspaceStrategy`. Covered by a new retry test."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "fixed",
      "rechecked_head": "b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3339,
      "summary": "The refusal message now claims no pushed ref covers HEAD only when `needsPushedWorktree && remoteWorktreeStrategy === undefined`; `placement: \"here\"` and a local `target.environmentId` with `isolation: \"worktree\"` get the generic active-human message. Covered by new tests."
    }
  ]
}

@nullStack65

Copy link
Copy Markdown
Owner Author

Note

🤖 grok-4.7 responding on behalf of nullStack65

M0 item 1 is in place for the laptop burst, and one correctness bug should be fixed before merge.

Omitted placement defaults to auto when automaticPlacementByDefault is on (fork default, Closura comment in packages/contracts/src/settings.ts). isolation: "worktree" routes to a headless host when the current branch's remote ref contains HEAD, with startFromOrigin: true. On an interactive host, agent-origin delegate_task calls are refused while humanActive !== false (unknown activity fails closed) unless needsLocalCheckout is set, and that exception is capped at one active local subagent. The 12-request replay (PRs 2261–2272) asserts 4 on R720, 1 on ASUS, 7 no-eligible-environment, and 0 laptop threads, including when both headless executors are full.

Overflow is a failed call (no-eligible-environment, nothing started), which keeps those requests off the laptop. It is not a durable queue. The 72-hour placement ratio and fleet-live receipt are post-rollout measurements and were not run here.

{
  "reviewed_base": "6382e077dede0c225c1cac0c7b2c4ec14e0a04a8",
  "reviewed_head": "b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1",
  "reviewer": "grok-4.7 (t3/grok-direct)",
  "author_session": "mcp:launch:258c8272bae1cf3f711984e8716295f8ed1a2846e2f3b35631fa62e31c82a176",
  "reviewer_session": "01a23ff6-ca86-7442-b18e-aa9c82e7a7f8",
  "fresh_context": true,
  "review_kind": "full",
  "round_id": "01a23ff6-ca86-7442-b18e-aa9c82e7a7f8",
  "intent": ["CLO-1368 M0-1: default delegate_task placement to auto, allow worktree placement on headless hosts, and refuse agent-origin children on active interactive hosts unless needsLocalCheckout is set (one at a time)"],
  "prior_findings": [],
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "outcome": "open",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 2611,
      "summary": "resolvePushedWorktreeStrategy falls through to the default branch tip whenever HEAD is only an ancestor of that tip and the current branch remote ref does not contain HEAD. An unpushed feature branch cut from a stale local default (origin/main has moved) is placed on a headless host as baseRef origin/<default> with startFromOrigin true, so the child checkout is neither the parent branch nor the parent commit. The real-git test covers a fully pushed main and a new commit that is not an ancestor of origin/main, and does not cover this fallback."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "open",
      "file": "packages/contracts/src/orchestratorMcp.ts",
      "line": 200,
      "summary": "The placement description quotes 'worktree' next to the accepted literals auto and here. placement only accepts auto and here; a model that copies the description sends placement \"worktree\" and schema validation rejects it. Worktree is an isolation value."
    }
  ]
}

…ktree placement and clarify placement copy

Addresses clean-room review 2/2 (Grok 4.7) findings F1 and F2 on PR #265:
- F1: In `resolvePushedWorktreeStrategy` (`OrchestratorMcpService.ts`), check
  exact commit SHA equality (`resolveCommit` on `HEAD` vs `refs/remotes/...`)
  and prefer the live checked-out branch via `symbolic-ref`, rather than
  `merge-base --is-ancestor`, so an unpushed feature branch cut from an older
  commit (or a stale local default branch) never falls through to a newer
  `origin/<default>` tip.
- F2: In `packages/contracts/src/orchestratorMcp.ts`, stop quoting `'worktree'`
  alongside `'auto'` and `'here'` in the `placement` description since
  `worktree` is an `isolation` value.
- Tests: Extend the real-Git worktree test in `OrchestratorMcpService.test.ts`
  to cover an unpushed branch cut from an older `origin/main` commit (refused)
  and then pushed as `origin/feat/older-base` (placed on the headless host),
  and update the `GitVcsDriver.resolveCommit` mock in `RemoteDelegation.test.ts`.

Model: gemini-4-neon
Task: fix
Agent: Builder
Harness: t3/antigravity
Model-family: Gemini (runtime model label)
Model-generation: 4 (runtime model label)
Skills-SHA: f6ff9413445ca486f4e9b67f2209e6be8c2a51a1; skills/github-repository-ops/SKILL.md (sha256:e3778c3a953bfa9e7bf5c9b9609b6d6c947cffa03366b3bc0f75bbb722b76784)
@nullStack65

Copy link
Copy Markdown
Owner Author

Note

🤖 grok-4.7 responding on behalf of nullStack65

Focused re-check of Grok F1 and F2 on 78ff443513344d87bf769931495652e8616e9eca, delta b9deb59d7332dd78b6c3dbabb13fb3cfbdd538b1..78ff443513344d87bf769931495652e8616e9eca.

F1 confirmed. resolvePushedWorktreeStrategy no longer treats "HEAD is an ancestor of the remote tip" as coverage. matchesHead at apps/server/src/mcp/OrchestratorMcpService.ts:2580 requires refs/remotes/<remote>/<branch> to resolve to the same commit as HEAD. The default-branch fallback at line 2607 uses that check, so an unpushed branch cut from an older default-branch commit is not placed as origin/<default> with startFromOrigin: true. No merge-base --is-ancestor remains in this function or in RemoteDelegation.ts. The live git test checks out feat/older-base at HEAD~1 after origin/main has moved, expects invalid_request containing "no pushed ref covers HEAD", then after git push -u origin feat/older-base expects baseRef: origin/feat/older-base.

F2 fixed. The placement description at packages/contracts/src/orchestratorMcp.ts:200 no longer quotes worktree beside the accepted literals auto and here. It says the checkout is created when isolation is set to worktree. Schema.Literals(["auto", "here"]) is unchanged.

Static read of that delta and the new test. I did not execute the test. CI on this head was still queued.

{
  "reviewed_base": "6382e077dede0c225c1cac0c7b2c4ec14e0a04a8",
  "reviewed_head": "78ff443513344d87bf769931495652e8616e9eca",
  "reviewer": "grok-4.7 (t3/grok-direct)",
  "author_session": "mcp:launch:258c8272bae1cf3f711984e8716295f8ed1a2846e2f3b35631fa62e31c82a176",
  "reviewer_session": "84ed06bd-2ded-43e1-be60-86ef242c0b41",
  "fresh_context": true,
  "review_kind": "focused_recheck",
  "round_id": "01a23ff6-ca86-7442-b18e-aa9c82e7a7f8",
  "intent": ["CLO-1368 M0-1: default delegate_task placement to auto, allow worktree placement on headless hosts, and refuse agent-origin children on active interactive hosts unless needsLocalCheckout is set (one at a time)"],
  "prior_findings": ["F1", "F2"],
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "outcome": "confirmed",
      "rechecked_head": "78ff443513344d87bf769931495652e8616e9eca",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 2607,
      "summary": "resolvePushedWorktreeStrategy now requires the remote tip SHA to equal HEAD (matchesHead at line 2580). The default-branch fallback at line 2607 uses that check, so an unpushed branch whose HEAD is only an ancestor of origin/<default> is not placed on the newer tip. The live git test checks out feat/older-base at HEAD~1 after origin/main advances and expects refusal until that branch itself is pushed."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "fixed",
      "file": "packages/contracts/src/orchestratorMcp.ts",
      "line": 200,
      "summary": "The placement description no longer quotes worktree next to the accepted literals auto and here. It says the remote checkout is created when isolation is set to worktree. Schema.Literals remains [\"auto\", \"here\"]."
    }
  ]
}

@nullStack65

Copy link
Copy Markdown
Owner Author

Focused re-check (Claude family) for PR #265 at 78ff443513344d87bf769931495652e8616e9eca, delta b9deb59d7332..78ff443513344.

  • F1 (confirmed): The delta changes only resolvePushedWorktreeStrategy (pushed-ref match now compares the remote ref tip to HEAD instead of an ancestor check), the test mock, a contract description string, and adds a test. delegateTask still calls remoteDelegation.placed(...) before reading defaults or local HEAD and forces canPlaceRemotely for a bound remote. RemoteDelegation.ts is untouched by this delta, so the priorLaunch/priorChild reconciliation is intact. The stricter exact-tip match only affects fresh placements, and a bound retry still bypasses it.
  • F2 (fixed): The refusal text is still gated on needsPushedWorktree && remoteWorktreeStrategy === undefined, so placement: "here" and a local target.environmentId keep the generic active-human message. The new real-git test (unpushed branch at HEAD~1) asserts the pushed-ref wording where it applies.
  • No new findings. This is a static review of the delta and I did not run the tests locally. CI checks were still pending when I read the PR.
{
  "reviewed_base": "6382e077dede0c225c1cac0c7b2c4ec14e0a04a8",
  "reviewed_head": "78ff443513344d87bf769931495652e8616e9eca",
  "reviewer": "claude-sonnet-5-5 (t3/antigravity)",
  "author_session": "mcp:launch:258c8272bae1cf3f711984e8716295f8ed1a2846e2f3b35631fa62e31c82a176",
  "reviewer_session": "a184b9e5-1f31-480e-ac12-4a3458200613",
  "fresh_context": true,
  "review_kind": "focused_recheck",
  "round_id": "852a1490-8a73-4018-af52-21358d0b5481",
  "intent": [
    "CLO-1368 M0-1: default delegate_task placement to auto, allow worktree placement on headless hosts, and refuse agent-origin children on active interactive hosts unless needsLocalCheckout is set (one at a time)"
  ],
  "prior_findings": ["F1", "F2"],
  "findings": [
    {
      "id": "F1",
      "severity": "important",
      "outcome": "confirmed",
      "rechecked_head": "78ff443513344d87bf769931495652e8616e9eca",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3187,
      "summary": "Idempotent retry of a remotely-placed `isolation: \"worktree\"` task still checks bound placement (`remoteDelegation.placed`) before local HEAD or `automaticPlacementByDefault`, and `RemoteDelegation.delegate` reconciliation is unchanged by this delta."
    },
    {
      "id": "F2",
      "severity": "nit",
      "outcome": "fixed",
      "rechecked_head": "78ff443513344d87bf769931495652e8616e9eca",
      "file": "apps/server/src/mcp/OrchestratorMcpService.ts",
      "line": 3335,
      "summary": "The pushed-ref refusal wording is still guarded by `needsPushedWorktree && remoteWorktreeStrategy === undefined`; `placement: \"here\"` and local `target.environmentId` get the generic active-human message."
    }
  ]
}

@nullStack65
nullStack65 merged commit 38fc745 into release/native-0.1.10 Dec 5, 2026
9 of 12 checks passed
@nullStack65
nullStack65 deleted the feat/clo-1368-m0-placement-default branch December 5, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant